package com.action;


import com.pojo.UserinfoPOJO;
import com.service.UserinfoService;
import com.vo.ResponseBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
@CrossOrigin("*")
public class UserinfoAction {

    @Autowired
    private UserinfoService userinfoService;

    @RequestMapping("/FindAll")
    public ResponseBean finAll(String user,String pwd){
        UserinfoPOJO f = userinfoService.sele(user,pwd);
        if (f == null){
            return new ResponseBean(500, 0, "操作失败");
        }
        return new ResponseBean(200, 0, "操作成功");
    }


}
